projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89a264d
)
Fix GtkMenuToolButton
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 22 Feb 2014 02:40:48 +0000
(21:40 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 22 Feb 2014 02:40:48 +0000
(21:40 -0500)
The addition of popovers to menu buttons broke this, by making
the toolbuttons stay insensitive.
https://bugzilla.gnome.org/show_bug.cgi?id=724799
gtk/gtkmenubutton.c
patch
|
blob
|
history
diff --git
a/gtk/gtkmenubutton.c
b/gtk/gtkmenubutton.c
index aa11a8d3e68100878e0736f6f9aa1cf044522a33..466408410c8e9e038d7c76b205a6908184836178 100644
(file)
--- a/
gtk/gtkmenubutton.c
+++ b/
gtk/gtkmenubutton.c
@@
-708,6
+708,8
@@
_gtk_menu_button_set_popup_with_func (GtkMenuButton *menu_button
gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (menu_button)), "menu-button");
}
+ gtk_widget_set_sensitive (GTK_WIDGET (menu_button), priv->menu != NULL);
+
g_object_notify (G_OBJECT (menu_button), "popup");
g_object_notify (G_OBJECT (menu_button), "menu-model");
}